(function isWeiXin() {
    var mark = document.getElementById("mark");
    var ua = window.navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == 'micromessenger') {
        return true;
    } else {
        window.location.href="browser.html";
    }
})();
